package com.imagecollector;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@MapperScan("com.imagecollector.mapper")
@SpringBootApplication
@EnableAsync  // 开启异步支持
@EnableTransactionManagement // 开启事务支持
@EnableScheduling // 开启定时任务支持
@Slf4j
public class ImageCollectorApplication {
    public static void main(String[] args) {
        log.info("ヾ(◍°∇°◍)ﾉﾞ    SUCCESS      ヾ(◍°∇°◍)ﾉﾞ");
        SpringApplication.run(ImageCollectorApplication.class, args);
    }

}
